package com.boot.demo.util;


/**
 * Created with LXD
 *
 * @author:Luhui
 * @qq:729913162
 * @Date:2018-08-11
 * @Time:11:22
 */
public class JsonResult<T> {
    private T data;
    private Integer status;
    private String error;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getHttpStatus() {
        return status;
    }

    public void setHttpStatus(Integer status) {
        this.status = status;
    }

    public JsonResult(T t, Integer status) {
        this.data = t;
        this.status = status;
    }

    public JsonResult(T t, Integer status,String error) {
        this.data = t;
        this.status = status;
        this.error = error;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
